package com.hailiao.beidou.message

import android.app.Application
import com.hailiao.beidou.message.bd.Beidou
import com.hailiao.beidou.message.ui.theme.initColor
import com.hailiao.beidou.message.utils.Logger

/**
 * 应用入口
 * @Author d10ng
 * @Date 2023/11/13 12:14
 */

val app by lazy { App.instance }

class App: Application() {

    companion object {
        lateinit var instance: App
    }

    override fun onCreate() {
        super.onCreate()
        instance = this

        initColor()
        Logger.debug = true

        // 北斗初始化
        Beidou.setDebug(true)
    }
}